<template>
  <div class="data-list-container">
    <div class="data-item" v-for="item in dataInfo" :key="item.title">
      <p class="p1">{{ item.data }}</p>
      <p class="p2">{{ item.title }}</p>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  dataInfo: Array
})
</script>

<style scoped>
.data-list-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #fff;
}
.data-list-container .data-item {
  width: calc(33% - 2px);
  height: 50px;
  margin-top: 4px;
  position: relative;
  background-color: #f7f8fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.data-list-container .data-item .p1 {
  line-height: 22px;
  font-size: 16px;
  color: #646566;
}
.data-list-container .data-item .p2 {
  width: 100%;
  line-height: 14px;
  padding: 0 6px;
  margin-top: 1px;
  font-size: 10px;
  color: #969799;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
</style>
